using System.Runtime.Serialization;

namespace Director.DomainModels
{
	[DataContract]
	public class Board
	{
		internal Board(StockSharp.Transaq.Native.Responses.Board board)
		{
			Id = board.Id;
			Name = board.Name;
			MarketId = board.Market;
			BoardType = (BoardType)board.Type;
		}

		[DataMember]
		public string Id { get; set; }

		[DataMember]
		public BoardType BoardType { get; set; }

		[DataMember]
		public int MarketId { get; set; }

		[DataMember]
		public string Name { get; set; }
	}
}